package com.example.librarymanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author LQS
 */
@Data
public class BorrowRecord {
    @ApiModelProperty()
    private Integer id;

    @ApiModelProperty(value = "借阅者编号")
    private Integer readerId;

    @ApiModelProperty(value = "书id")
    private Integer bookId;

    @ApiModelProperty(value = "借书日期")
    private Date borrowDate;

    @ApiModelProperty(value = "应还书日期")
    private Date shouldReturnDate;

    @ApiModelProperty(value = "还书日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date returnDate;

    @ApiModelProperty(value = "借阅状态")
    private Integer state;

    @ApiModelProperty(value = "查询图书借阅还是期刊借阅（0为图书借阅，1为期刊借阅）")
    private Integer bookPeriodical;
}
